package dao.user.dataobject;

import java.util.Date;

import dao.base.BaseDO;

public class UserDO extends BaseDO {
	/**
	 * 
	 */
	private static final long serialVersionUID = -1106927927859910784L;

	private int userId;

	private String alipayId;

	private String alipayEmail;

	private String idCardNumber;

	private String fullname;

	private Date gmtCreate;

	private Date gmtModified;

	private int userType;

	private String alipayName;

	private String nick;

	private String siteFrom;

	public String getAlipayName() {
		return alipayName;
	}

	public void setAlipayName(String alipayName) {
		this.alipayName = alipayName;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtModified() {
		return gmtModified;
	}

	public void setGmtModified(Date gmTModified) {
		this.gmtModified = gmTModified;
	}

	public String getAlipayEmail() {
		return alipayEmail;
	}

	public void setAlipayEmail(String alipayEmail) {
		this.alipayEmail = alipayEmail;
	}

	public String getAlipayId() {
		return alipayId;
	}

	public void setAlipayId(String alipayId) {
		this.alipayId = alipayId;
	}

	public String getFullname() {
		return fullname;
	}

	public void setFullname(String fullname) {
		this.fullname = fullname;
	}

	public String getIdCardNumber() {
		return idCardNumber;
	}

	public void setIdCardNumber(String idCardNumber) {
		this.idCardNumber = idCardNumber;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getUserType() {
		return userType;
	}

	public void setUserType(int userType) {
		this.userType = userType;
	}

	public String getNick() {
		return nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	public String getSiteFrom() {
		return siteFrom;
	}

	public void setSiteFrom(String siteFrom) {
		this.siteFrom = siteFrom;
	}

	public String getAlipayAccount() {
		return this.getAlipayId() + "0156";
	}

	public String getShowNick() {
		if (nick == null || nick.equals("")) {
			return alipayEmail;
		} else {
			return nick;
		}
	}

}
